<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="init.jsp"%>

<ts:pageTemplate>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<table class="table table-hover table-bordered">
					<thead>
						<tr>
							<th>#</th>
							<th>Username</th>
							<th>User role</th>
							<th>Edit</th>
							<th>Delete</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach var="user" items="${users}" varStatus="status">
							<tr id="${user.username}">
								<td class="row">${status.index+1}</td>
								<td class="row"><a>${user.username}</a></td>
								<td class="row">${user.group}</td>
								<td class="row">
									<form action="/FaTestingSystem/editUser" method="get">
										<button class="btn pull-left btn-1" name="action"
											type="submit" value="${user.username}">Edit</button>
									</form>
								</td>

								<td>
									<form action="/FaTestingSystem/deleteUser" method="get">
										<button class="btn pull-left btn-1" name="action"
											type="submit" value="${user.username}">Delete</button>
									</form>
								</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</ts:pageTemplate>











